/**
 *
 */
package cvi.com.reader.voiceAssessment;


import cvi.com.reader.voiceAssessment.util.ResultFormatUtil;

/**
 * <p>Title: ReadSyllableResult</p>
 * <p>Description: 中文单字评测结果</p>
 * <p>Company: www.iflytek.com</p>
 * @author iflytek
 * @date 2015年1月12日 下午5:03:14
 */
public class ReadSyllableResult extends Result {

    public ReadSyllableResult() {
        //language = "cn";
        category = "read_syllable";
    }

    @Override
    public String toString() {
/*		StringBuffer buffer = new StringBuffer();
		buffer.append("[总体结果]\n")
				.append("评测内容：" + content + "\n")
				.append("朗读时长：" + time_len + "\n")
				.append(" 完整度分：" + integrity_score+ "\n")
				.append(" 声韵分：" + phone_score+ "\n")
				.append(" 调型分：" + tone_score+ "\n")
				.append(" 流畅度分：" + fluency_score+ "\n")
				.append("总分：" + total_score + "\n\n")
				.append("[朗读详情]").append(ResultFormatUtil.formatDetails_CN(sentences));

		return buffer.toString();
	}*/

        //====
        StringBuffer buffer = new StringBuffer();

        if ("cn".equals(language)) {
            buffer.append("[总体结果]\n")
                    .append("评测内容：" + content + "\n")
                    .append("朗读时长：" + time_len + "\n")
                    .append(" 完整度分：" + integrity_score + "\n")
                    .append(" 声韵分：" + phone_score + "\n")
                    .append(" 调型分：" + tone_score + "\n")
                    .append(" 流畅度分：" + fluency_score + "\n")
                    .append("总分：" + total_score + "\n\n")
                    .append("[朗读详情]").append(ResultFormatUtil.formatDetails_CN(sentences));
        } else {

            buffer.append("[总体结果]\n")
                    .append("评测内容：" + content + "\n")
                    .append(" 完整度分：" + integrity_score + "\n")
                    .append(" 音节得分：" + standard_score + "\n")
                    .append(" 准确度分：" + accuracy_score + "\n")
                    .append(" 流畅度分：" + fluency_score + "\n")
                    .append("总分：" + total_score + "\n\n")
                    .append("[朗读详情]").append(ResultFormatUtil.formatDetails_EN(sentences));
        }
        return buffer.toString();


    }
}
